home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / T / TattleTech 2.17.sit / TattleTech 2.17 / Support Files / TTLaunch Folder 1.0 / TTLaunch Library Notes next >
Encoding:
Text File  |  1994-01-07  |  4.0 KB  |  60 lines  |  [TEXT/ttxt]

  1. TTLaunch Library Notes:
  2.  
  3. This library allows you to launch TattleTech directly from your program as a separate process.  This creates a more seamless interface for the user but requires modification of your program to accomodate the library.
  4.  
  5. As the result of various combinations of parameters to the library's single function call and the manner in which you configure TT, you would most likely use the library in one of two ways: 
  6.  
  7. 1) Configure TT to have its normal window interface, launch TT from your program, and have your program continue to run.  This would allow the user to be interactive with your program while using TT to report profile data.  If you were not able to solve the user's problem immediately, you could then instruct them to print/write the reports to file and send them to you. 
  8.  
  9. -or-
  10.  
  11. 2) Configure TT in a faceless mode, launch it from your program, and have it generate its reports to a file. You would have the option to either have control return to your program when TT was finished reporting or have your program terminate when TT was launched. (In faceless mode, TT itself always runs to completion and then quits.)
  12.  
  13. All of the various behaviors are available on systems 6.04 and greater.  The only exception to the described functionality would be if the user were running uni-finder under System 6. This would, of course, eliminate the ability to run concurrently.
  14.  
  15. The library is in MPW.o format and is linkable to MPW and Think C or Pascal.  It should also be linkable to any other environment that can accept an MPW.o format library and make toolbox style calls.
  16.  
  17. The INTERFACE to the call is:
  18.  
  19. -PASCAL-
  20. Uses
  21.    TTLaunchUnit;
  22.  
  23. FUNCTION LaunchTT (s7SubLaunch, s7Complete, s6MSubLaunch, s6MComplete, s6SSubLaunch: boolean): OSERR;external;
  24.  
  25. -C-
  26. extern pascal short LaunchTT(    Boolean s7SubLaunch,
  27.                         Boolean s7Complete,
  28.                         Boolean s6MSubLaunch,
  29.                         Boolean s6MComplete,
  30.                         Boolean s6SSubLaunch);
  31.  
  32. PARAMETERS
  33. The following parameters are provided to allow for different behavior under the various possible operating environments.  
  34.  
  35. s7SubLaunch:     If System 7, sublaunch TT and return control to launcher
  36. s7Complete:       If s7SubLaunch, return control after completion
  37. s6MSubLaunch:   If System 6/MultiFinder, sublaunch TT and return control to launcher
  38. s7Complete:       If s6MSubLaunch, return control after completion
  39. s6SSubLaunch:   If System 6/Unifinder, launch TT and re-launch caller after TT completes
  40.  
  41. NOTE:  If TT is configured in Faceless mode, the "completion" parameters do not really have an effect as TT does not give up control until it has run to completion.  This may change with a future version of TT which allows background processing.
  42.  
  43. ERROR CODES
  44.          0  No Error
  45. - 7800  System 7 but Launch Control capability is missing.  Cannot run TT. Very unlikely.
  46. - 7801  64K Roms.  Cannot run TT.
  47. - 7802  Environment is not System 6.04 or greater.  Cannot run TT.
  48. - 7803  Cannot find a copy of TT in the same folder as launcher.  Cannot run TT.
  49. Other     Various other standard system and toolbox errors
  50.  
  51. USE
  52. Declare the TTLaunch function in a style appropriate to your development system.  Then call TTLaunch wherever you like in your code.  If you make the call from a modeless dialog, launch of TT will not occur until the dialog is dismissed.  TT itself must be loacted in the same folder as your application, but may be given any name you wish.  
  53.  
  54. Note: It is recommended that this library only be called from an application although there are probably certain circumstances where it might work from a DA.
  55.  
  56. NOTICE
  57. TechTools Corp and Decision Maker's Software, Inc. (Licensor) grant no warranties, either express or implied, with regard to this software, including all implied warranties or merchantability and fitness for a particular purpose.  The user indemnifies Licensor and holds Licensor harmless from all liabilities or obligations for damages arising out of or in connection with the delivery, use, or performance of this software. In no event shall Licensor be liable for incidental or consequential damages.
  58.  
  59. TECH SUPPORT
  60. Please refer to your TattleTech Manual.